home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Games / Xconq 7.1.0 / src / xconq-7.1.0 / doc / x11-dsect.texi < prev    next >
Encoding:
Text File  |  1996-07-07  |  3.4 KB  |  113 lines  |  [TEXT/R*ch]

  1. @node Designing with X11 Xconq, , , Game Design
  2.  
  3. @section Designing with X11 Xconq
  4.  
  5. There are two ways to get into designer's mode; you can either specify
  6. @samp{-design} on the command line, or else enter the long command
  7. @samp{design}.  When you do either of
  8. these, several things will happen: the side list will mark your side
  9. as a designer, the ``see all'' button in the view control panel will
  10. be enabled, and you will get a popup with designer's tools.
  11. The popup applies to all maps equally.
  12.  
  13. The identification in the side list is for the benefit of other players,
  14. since it is actually possible to enable designing in a multi-player game.
  15. @c but maybe should disable, or else enable for all players
  16. @c simultaneously??  Somebody could enable designing, hack a bit,
  17. @c then switch back before anybody else in the game noticed...
  18.  
  19. The ``see all'' view control allows you to see everything accurately.
  20. It is switchable so you can compare what things look like to the player
  21. vs what they are in reality.
  22.  
  23. @c need side view painting here too
  24.  
  25. @subsection X11 Xconq Design Dialog
  26.  
  27. [should include info about designer's dialog]
  28.  
  29. @subsection Shortcuts for X11 Xconq Designers
  30.  
  31. @itemize
  32.  
  33. @item
  34. Clicking on the ``sides'' subwindow will select the current side.
  35.  
  36. @item
  37. Clicking on the ``unit types'' subwindow will select the current unit
  38. type.
  39.  
  40. @item
  41. Clicking a cell with the right mouse button in terrain-drawing mode
  42. will select the current terrain.
  43.  
  44. @item
  45. Clicking a unit with the right mouse button in unit-adding mode will
  46. select the current unit type.
  47.  
  48. @item
  49. Clicking a unit with the right mouse button in people-drawing mode
  50. will select the current side.
  51.  
  52. @item
  53. Clicking a cell with the right mouse button in feature-drawing mode
  54. will select the current feature.
  55.  
  56. @end itemize
  57.  
  58. In addition, there are keyboard commands that you can use.
  59.  
  60. @itemize
  61.  
  62. @item
  63. `@code{|}' @code{set-unit-type} .
  64. This command asks for the unit type that you would like to be the
  65. current type to create.
  66.  
  67. @item
  68. `@code{\}' @code{add-unit} .
  69. This command adds a unit of the current type to the current location.
  70.  
  71. @item
  72. `@code{~}' @code{set-terrain-type} .
  73. This command asks for the terrain type you would like to paint.
  74. The prefix argument sets the radius of the area to paint.
  75. The default radius is 0, which just paints a single cell.
  76.  
  77. @item
  78. `@code{`}' @code{paint-terrain} .
  79. This command applies the current terrain type to an area with the
  80. current radius around the current location.
  81.  
  82. @end itemize
  83.  
  84. @subsection Image Families
  85.  
  86. @i{X11 Xconq} can use images in either its portable image family format,
  87. or as bitmaps.  However, since images in portable format will work with
  88. other interfaces, you should only use bitmaps while prototyping,
  89. and translate them into portable form using @samp{x2imf}.
  90.  
  91. To translate image families into bitmaps, use the tool @samp{imf2x}.
  92.  
  93. @subsubsection Xshowimf
  94.  
  95. The program @samp{xshowimf} displays image families.
  96.  
  97. Install the resource files @samp{XShowimf.ad} and @samp{XShowimf-co.ad} as
  98. @samp{XShowimf} and @samp{XShowimf-co}
  99. (or @samp{XShowimf-color}, depending on the value of
  100. the customization resource) in the proper directory [???],
  101. or load the relevant file with @samp{xrdb -merge}.
  102.  
  103. Control the display of three-color images (mono+mask) with the
  104. resource @samp{maskColor} (see @samp{XShowimf-co.ad}
  105. or with the command-line argument @samp{-mc}.
  106.  
  107. To edit the image families, do something like
  108. @example
  109. mkdir tmp
  110. xshowimf [imf/xbm/xpm files...] -o tmpdir &
  111. (cd tmpdir; xpaint) &
  112. @end example
  113.